
.PHONY: clean

cc = gcc
EXE = hzktrans

SRC = ${wildcard *.c}
# OBJS = ${patsubst %.c, %.o, ${SRC}}
OBJS = ${SRC: .c=.o}

$(EXE) : $(OBJS)
	$(cc)  $^ -o $@ 


# %.c : %.o
# 	$(cc) -o $@ -c $^

main_HZK_trans_ALL.o: main_HZK_trans_ALL.c
	$(cc) -c $^

hzk16_test.o: hzk16_test.c
	$(cc) -c $^

clean : 
	@rm -rf $(EXE) $(OBJS)





# SRC_FILES = $(wildcard *.c)
# TAG_FILES = hzk16v

# CC     = gcc
# CFLAGS = -Wall -g


# .SECONDARY:
# .SUFFIXES: 
# .SUFFIXES: % %.o

# $(TAG_FILES) : 
# 	gcc ${CFLAGS} -o $@ ${SRC_FILES} 

# .PHONY: clean
# clean : 
# 	@rm -rf  $(TAG_FILES)



